import Vue from 'vue'
import {
  Button,
  NavBar,
  Tabbar,
  TabbarItem,
  Swipe,
  SwipeItem,
  Toast,
  Grid,
  GridItem,
  Card,
  Tab,
  Tabs,
  Lazyload,
  ImagePreview 
} from 'vant'

Vue.use(Tab).use(Tabs)
  .use(Lazyload, {
    loading: "http://hbimg.b0.upaiyun.com/3f3642ab7eb186e174b25a4b1b17b2f3df6cf43af647-r8ef8I_fw658"
  })
  .use(Card)
  .use(Grid).use(GridItem)
  .use(Swipe).use(SwipeItem)
  .use(Tabbar).use(TabbarItem)
  .use(NavBar)
  .use(Button)

Vue.prototype.$Toast = Toast
Vue.prototype.$ImagePreview = ImagePreview
